package indi.zhifa.engine.test2.gen.busy.item.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.engine.test2.entity.EnpBelongEntity;
import indi.zhifa.engine.test2.enums.EItemUnitType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 商品定义表
 * </p>
 *
 * @author 织法
 * @since 2024-09-16
 */
@Data
@TableName("item_define")
@Schema(title = "ItemDefineEntity对象", description = "商品定义表")
public class GenItemDefineEntity extends EnpBelongEntity {

    @Schema(title = "商品名称")
    private String name;

    @Schema(title = "商品描述")
    private String description;

    @Schema(title = "单位枚举，0表示只有小单位，1表示有大单位和小单位，2表示有大中小单位")
    private EItemUnitType unitType;

    @Schema(title = "小单位名称")
    private String smallUnitName;

    @Schema(title = "中单位名称")
    private String midUnitName;

    @Schema(title = "大单位名称")
    private String largeUnitName;

    @Schema(title = "一个大单位等于几个小单位")
    private Integer largeConvert;

    @Schema(title = "一个中单位等于几个小单位")
    private Integer midConvert;

    @Schema(title = "是否上架。上架商品才能做单据操作。上架后的商品不能修改单位转换。")
    private Boolean onShelves;

    @Schema(title = "商品大类型，此处为了简便，用一个key替代")
    private String mainType;

    @Schema(title = "商品小类型，此处为了简便，用一个key替代")
    private String segmentType;

    @Schema(title = "商品的所属品牌，此处为了简便，用一个key替代")
    private String brand;

}
